/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.system.action.system;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.system.mapper.system.ERPPunNexusStrMapper;
public class ERPPunNexusStr extends BaseAction
{
    @Autowired(required=false)
	private ERPPunNexusStrMapper mapper;
    /**
    模块菜单
    */
    
    public Map eRPModuMenu() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> ts_container=mapper.ts_container(params);
        ts_container.setSelectNone("系统列表明细");
        result.put("ts_container", ts_container);
        
        return result;
    }
    /**
    增加
    */
    
    public Map eRPModuMenuAdd() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_type=mapper.s_type(params);
        SQLMap s_type_emt=s_type.getExistfirst();
        result.put("s_type", s_type_emt);
        
        
        SQLList<SQLMap> s_type1=mapper.s_type1(params);
        SQLMap s_type1_emt=s_type1.getExistfirst();
        result.put("s_type1", s_type1_emt);
        
        return result;
    }
    /**
    列表
    */
    
    public Map eRPModuMenuList() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_type=mapper.s_type(params);
        result.put("s_type", s_type);
        
        return result;
    }
    /**
    模块菜单修改
    */
    
    public Map eRPModuMenuSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        for (SQLMap emt:hqlBean.getTableElements("ts_container_menu")){
            params=new SQLParam(request,emt.getMap());
            mapper.ts_umenu(params);
        }
        
        return result;
    }
    /**
    增加修改
    */
    
    public Map eRPModuMenuAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int CMID1 = mapper.CMID1(params);
        result.put("CMID1", CMID1);
        
        return result;
    }
    /**
    */
    
    public Map d_type() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_type(params);
        
        return result;
    }
}